
import { TeamUI } from "./teamUI";
export class GroupUI {
    teams:Array<TeamUI|null>;
    constructor(){
        this.teams = new Array<TeamUI|null>();
    }
    public add(team:TeamUI){
        this.teams.push(team);
    }
    public clearTeam(index:number){
        this.teams[index]=null;
    }
    public removeMember(teamIndex:number, memberIndex:number){
        let team = this.teams[teamIndex];
        team?.clearMember(memberIndex);
    }
    public isTeamEmpty(teamIndex:number){
        return this.teams[teamIndex]==null;
    }
}